package com.nov.multidatasource.entity.primary;

import lombok.Getter;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 项目名称：CM
 * 类名称：CM_Info
 * 类描述：   CM_Info实体类
 * 创建人：ganxintong
 * 创建时间：2013-10-16 下午04:56:34
 * 修改人：ganxintong
 * 修改时间：2013-10-16 下午04:56:34
 * 修改备注：
 * 版本：1.0.1
 */
@Getter
public class V3CMInfo implements Serializable {

    private static final long serialVersionUID = 1L;
    private String content_id;        //主键
    private String cip;                //客户端ip
    private String system_code;        //应用系统号
    private String branch_no;        //网点机构号
    private String user_no;            //柜员号
    private String busi_serial_no;    //业务流水号
    private String batch_id;        //批次号
    private String client_batch_id;    //前台生成的批次号
    private String operate_date;    //操作日期
    private Timestamp operate_time;    //操作时间
    private String trade_type;        //交易类型
    private String rsp_code;        //返回信息码	代码后4位全是零表示成功，第一位表示交易的类型如：10000表示保存成功
    private String rsp_msg;            //返回信息
    private String backup;            //备份状态	0-未备份	1-已备份
    private String updatecode;        //批改批次结果
    //	public Page getPage() {
    //		return page;
    //	}
    //	public void setPage(Page page) {
    //		this.page = page;
    //	}
    private String begindate;
    private String billtype;
    //	private Page page;
    private int batchstate;          //0未扫描过  1扫描成功 2扫描成功没附件

    private String batch_type;//0:原始的单据　1:关联的单据

    private String isRelated;//-1:不能被关联 0:被关联过 1：没有被关联过

    private String relatedbatchid;

    private String depart;            //机构
    private String project;            //项目
    private String contract;        //合同
    private String departname;        //机构名
    private String projectname;        //项目名
    private String contractname;    //合同名

    private String task_type;        //用于区分ocr识别方式（4：用友建筑方式 5：nc增票管理平台方式 7：增强版方式）
    private String sync_result;        //同步结果 200：成功  其他：失败
    private String fail_reason;    //失败原因
    private String sync_time;        //同步时间
    private String orgno;    //机构编号

    public void setOrgno(String orgno) {
        this.orgno = orgno;
    }

    public void setRelatedbatchid(String relatedbatchid) {
        this.relatedbatchid = relatedbatchid;
    }

    public void setIsRelated(String isRelated) {
        this.isRelated = isRelated;
    }

    public static long getSerialversionuid() {
        return serialVersionUID;
    }

    public void setBatch_type(String batchType) {
        batch_type = batchType;
    }

    public void setBatchstate(int batchstate) {
        this.batchstate = batchstate;
    }

    public void setBegindate(String begindate) {
        this.begindate = begindate;
    }

    public void setEnddate(String enddate) {
        this.enddate = enddate;
    }

    private String enddate;

    public void setUpdatecode(String updatecode) {
        this.updatecode = updatecode;
    }

    public void setBackup(String backup) {
        this.backup = backup;
    }

    public void setCip(String cip) {
        this.cip = cip;
    }

    public void setClient_batch_id(String client_batch_id) {
        this.client_batch_id = client_batch_id;
    }

    public void setContent_id(String content_id) {
        this.content_id = content_id;
    }

    public void setSystem_code(String system_code) {
        this.system_code = system_code;
    }

    public void setBranch_no(String branch_no) {
        this.branch_no = branch_no;
    }

    public void setBusi_serial_no(String busi_serial_no) {
        this.busi_serial_no = busi_serial_no;
    }

    public void setBilltype(String billtype) {
        this.billtype = billtype;
    }

    public void setBatch_id(String batch_id) {
        this.batch_id = batch_id;
    }

    public void setOperate_date(String operate_date) {
        this.operate_date = operate_date;
    }

    public void setOperate_time(Timestamp operate_time) {
        this.operate_time = operate_time;
    }

    public void setUser_no(String user_no) {
        this.user_no = user_no;
    }

    public void setTrade_type(String trade_type) {
        this.trade_type = trade_type;
    }

    public void setRsp_code(String rsp_code) {
        this.rsp_code = rsp_code;
    }

    public void setRsp_msg(String rsp_msg) {
        this.rsp_msg = rsp_msg;
    }

    public void setDepart(String depart) {
        this.depart = depart;
    }

    public void setProject(String project) {
        this.project = project;
    }

    public void setContract(String contract) {
        this.contract = contract;
    }

    public void setDepartname(String departname) {
        this.departname = departname;
    }

    public void setProjectname(String projectname) {
        this.projectname = projectname;
    }

    public void setContractname(String contractname) {
        this.contractname = contractname;
    }

    public void setTask_type(String task_type) {
        this.task_type = task_type;
    }

    public void setSync_result(String sync_result) {
        this.sync_result = sync_result;
    }

    public void setFail_reason(String fail_reason) {
        this.fail_reason = fail_reason;
    }

    public void setSync_time(String sync_time) {
        this.sync_time = sync_time;
    }

    @Override
    public String toString() {
        return "CM_Info [backup=" + backup + ", batch_id=" + batch_id
                + ", batchstate=" + batchstate + ", begindate=" + begindate
                + ", branch_no=" + branch_no + ", busi_serial_no="
                + busi_serial_no + ", cip=" + cip + ", client_batch_id="
                + client_batch_id + ", content_id=" + content_id + ", enddate="
                + enddate + ", operate_date=" + operate_date
                + ", operate_time=" + operate_time + ", page=" // page
                + ", rsp_code=" + rsp_code + ", rsp_msg=" + rsp_msg
                + ", system_code=" + system_code + ", trade_type=" + trade_type
                + ", updatecode=" + updatecode + ", user_no=" + user_no + "]";
    }
}
